package com.jindy.module.oaEvectionApproval.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jindy.activiti.domain.ProcessEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jindy.common.annotation.Excel;

/**
 * 出差申请对象 sy_oa_evection
 *
 * @author jindy
 * @date 2023-05-31
 */
public class SyOaEvection extends ProcessEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long id;

    /** 出差事由 */
    @Excel(name = "出差事由")
    private String reason;

    /** 出差天数 */
    @Excel(name = "出差天数")
    private String days;

    /** 同行人 */
    @Excel(name = "同行人")
    private String partner;

    /** 同行人id */
    @Excel(name = "同行人id")
    private Long partnerId;

    /** 出行方式 */
    @Excel(name = "出行方式")
    private String travelWay;

    /** 申请人id */
    @Excel(name = "申请人id")
    private String applyUserId;

    /** 申请人姓名 */
    @Excel(name = "申请人姓名")
    private String applyUserName;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    /** 流程实例ID */
    @Excel(name = "流程实例ID")
    private String instanceId;

    /** 流程定义key */
    @Excel(name = "流程定义key")
    private String processKey;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 流水单号 */
    @Excel(name = "流水单号")
    private String serialNum;

    /** 审批状态 */
    @Excel(name = "审批状态")
    private String businessStatus;

    /** 出差申请行程数量 */
    @Excel(name = "出差申请行程数量")
    private Long evectionTripNum;

    /** 出差行程表id */
    @Excel(name = "出差行程表id")
    private String tripId;

    /** 出差行程表内容 */
    private List<SyEvectionTrip> syEvectionTripList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setReason(String reason)
    {
        this.reason = reason;
    }

    public String getReason()
    {
        return reason;
    }
    public void setDays(String days)
    {
        this.days = days;
    }

    public String getDays()
    {
        return days;
    }
    public void setPartner(String partner)
    {
        this.partner = partner;
    }

    public String getPartner()
    {
        return partner;
    }
    public void setPartnerId(Long partnerId)
    {
        this.partnerId = partnerId;
    }

    public Long getPartnerId()
    {
        return partnerId;
    }
    public void setTravelWay(String travelWay)
    {
        this.travelWay = travelWay;
    }

    public String getTravelWay()
    {
        return travelWay;
    }
    public void setApplyUserId(String applyUserId)
    {
        this.applyUserId = applyUserId;
    }

    public String getApplyUserId()
    {
        return applyUserId;
    }
    public void setApplyUserName(String applyUserName)
    {
        this.applyUserName = applyUserName;
    }

    public String getApplyUserName()
    {
        return applyUserName;
    }
    public void setApplyTime(Date applyTime)
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime()
    {
        return applyTime;
    }
    public void setInstanceId(String instanceId)
    {
        this.instanceId = instanceId;
    }

    public String getInstanceId()
    {
        return instanceId;
    }
    public void setProcessKey(String processKey)
    {
        this.processKey = processKey;
    }

    public String getProcessKey()
    {
        return processKey;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setSerialNum(String serialNum)
    {
        this.serialNum = serialNum;
    }

    public String getSerialNum()
    {
        return serialNum;
    }
    public void setBusinessStatus(String businessStatus)
    {
        this.businessStatus = businessStatus;
    }

    public String getBusinessStatus()
    {
        return businessStatus;
    }
    public void setEvectionTripNum(Long evectionTripNum)
    {
        this.evectionTripNum = evectionTripNum;
    }

    public Long getEvectionTripNum()
    {
        return evectionTripNum;
    }
    public void setTripId(String tripId)
    {
        this.tripId = tripId;
    }

    public String getTripId()
    {
        return tripId;
    }

    public List<SyEvectionTrip> getSyEvectionTripList() {
        return syEvectionTripList;
    }

    public void setSyEvectionTripList(List<SyEvectionTrip> syEvectionTripList) {
        this.syEvectionTripList = syEvectionTripList;
    }

    @Override
    public String toString() {
        return "SyOaEvection{" +
                "id=" + id +
                ", reason='" + reason + '\'' +
                ", days='" + days + '\'' +
                ", partner='" + partner + '\'' +
                ", partnerId=" + partnerId +
                ", travelWay='" + travelWay + '\'' +
                ", applyUserId=" + applyUserId +
                ", applyUserName='" + applyUserName + '\'' +
                ", applyTime=" + applyTime +
                ", instanceId='" + instanceId + '\'' +
                ", processKey='" + processKey + '\'' +
                ", delFlag='" + delFlag + '\'' +
                ", serialNum='" + serialNum + '\'' +
                ", businessStatus='" + businessStatus + '\'' +
                ", evectionTripNum=" + evectionTripNum +
                ", tripId='" + tripId + '\'' +
                ", syEvectionTripList=" + syEvectionTripList +
                '}';
    }
}
